MButton:: ;TYPE IN variazbles below this line
;SUBMENU :one
;ITEM    :New_AHK_file
/*






*/
; function end | k|eep below line 11
Loop, 1 {
CoordMode, Menu, Screen
CoordMode, Mouse, Screen



;//MENU ADD ABOVE THIS LINE


;//MENU ITEM ADD ABOVE THIS LINE
Menu, MyMenu, Add  ; Add a separator line below the submenu.
Menu, MyMenu, Add, --------Menu-Maker--------,
Menu, MyMenu, Add, Add_Item,
Menu, MyMenu, Add, Add_Submenu,
Menu, MyMenu, Add, Add_TO_Submenu,
Menu, MyMenu, Add, Load_empty_menu,
Menu, MyMenu, Add, New_AHK_file,
Menu, MyMenu, Add  ; Add a separator line below the submenu.
;//ITEM ADD ABOVE THIS LINE
Show()
--------Menu-Maker--------App
WinKill, menu launcher - quits right after .ahk, WinText, ExcludeText
return  ; End of script's auto-execute section.


Add_Item:
TrayTip _, Add_Item, , 
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{pgup 9}{down 2}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//ITEM ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay,Menu, MyMenu, Add, {ctrl down}{v}{ctrl up},

SendPlay,{pgup 9}{down 2}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}{enter}
SendPlay,{ctrl down}{v}{ctrl up}:

SendPlay,{pgup 9}{down 3}{end}
SendPlay,{shift down}{down 6}{end}{end}
SendPlay,{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay,{ctrl down}{v}{ctrl up}
SendPlay,{enter}{R}eturn
Return

Add_Submenu:
TrayTip _, Add_Submenu, , 

WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{pgup 9}{down}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//MENU ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay, Menu, {ctrl down}{v}{ctrl up}, Add,{space}

SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//MENU ITEM ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay, Menu, MyMenu, Add, {ctrl down}{v}{ctrl up}, :{ctrl down}{v}{ctrl up}

SendPlay,{pgup 9}{down 2}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//MENU ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}
SendPlay,{ctrl down}{v}{ctrl up}, {ctrl down}{v}{ctrl up}, 

SendPlay,{pgup 9}{down 2}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}{enter}
SendPlay,{ctrl down}{v}{ctrl up}:

SendPlay,{pgup 9}{down 3}{end}
SendPlay,{shift down}{down 6}{end}{end}
SendPlay,{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay,{ctrl down}{v}{ctrl up}
SendPlay,{enter}{R}eturn

--------Menu-Maker--------app
Return

Add_TO_Submenu:
TrayTip _, Add_TO_Submenu, ,
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{pgup 9}{down}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//MENU ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay, Menu, {ctrl down}{v}{ctrl up}, Add,{space}

SendPlay,{pgup 9}{down 2}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//MENU ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}
SendPlay,{ctrl down}{v}{ctrl up}, {ctrl down}{v}{ctrl up}, 

SendPlay,{pgup 9}{down 2}{home}{right 10}
SendPlay,{shift down}{end}{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}{enter}
SendPlay,{ctrl down}{v}{ctrl up}:

SendPlay,{pgup 9}{down 3}{end}
SendPlay,{shift down}{down 6}{end}{end}
SendPlay,{shift up}
SendPlay,{ctrl down}{c}{ctrl up}
SendPlay,{ctrl down}{f}{ctrl up}
WinWaitActive, ExcludeText - ExcludeTitle, , 0.2
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE
SendPlay,{tab 6}{enter}{esc}
SendPlay,{up 2}{end}{enter}
SendPlay,{ctrl down}{v}{ctrl up}
SendPlay,{enter}{R}eturn

--------Menu-Maker--------:
Reload
Return










Load_empty_menu:
;Run, empty menu.ahk
SendPlay, {^}MButton{:}{:} {;}TYPE IN variazbles below this line {enter}
SendPlay, {;}SUBMENU {:}YO{enter}
SendPlay, {;}ITEM    {:}program{enter}
SendPlay, /{*} {enter}
SendPlay, TrayTip SWAG, IT WORKS!, ,  {enter}
SendPlay, sleep,500 {enter}
SendPlay,  {enter}
SendPlay,  {enter}
SendPlay,  {enter}
SendPlay,  {enter}
SendPlay, {*}/ {enter}
SendPlay, {;} function end || keep below line 11 {enter}
SendPlay, Loop, 1 {{} {enter}
SendPlay, CoordMode, Menu, Screen {enter}
SendPlay, CoordMode, Mouse, Screen {enter}
SendPlay,  {enter}
SendPlay, Menu, YO, Add, AHK, AHK {enter}
SendPlay,  {enter}
SendPlay, {;}//MENU ADD ABOVE THIS LINE {enter}
SendPlay, Menu, MyMenu, Add, YO, {:}YO  {enter}
SendPlay,  {enter}
SendPlay, {;}//MENU ITEM ADD ABOVE THIS LINE {enter}
SendPlay, Menu, MyMenu, Add  {;} Add a separator line below the submenu. {enter}
SendPlay, Menu, MyMenu, Add, boon,  {enter}
SendPlay, Menu, MyMenu, Add  {;} Add a separator line below the submenu. {enter}
SendPlay,  {enter}
SendPlay, {;}//ITEM ADD ABOVE THIS LINE {enter}
SendPlay, Show{(}{)} {enter}
SendPlay, Reload {enter}
SendPlay, WinKill, menu launcher - 
SendPlay, quits right after .ahk, WinText, ExcludeText {enter}
SendPlay, {R}eturn  {;} End of script's auto-execute section. {enter}
SendPlay,  {enter}
SendPlay,  {enter}
SendPlay, AHK{:} {enter}
SendPlay, Run, C{:}\Program Files {(}x86{)}\ColorMania\ColorMania.exe {enter}
SendPlay, {R}eturn {enter}
SendPlay,  {enter}
SendPlay, boon{:} {enter}
SendPlay, TrayTip Work, Time to work dude, ,  {enter}
SendPlay, sleep,500 {enter}
SendPlay, Reload {enter}
SendPlay {R}eturn  {enter}
SendPlay,  {enter}
SendPlay,{;}//FUNCTION ADD ABOVE THIS LINE {enter}
SendPlay,  {enter}
SendPlay,  {enter}
SendPlay, Show{(}{)} {{} {enter}
SendPlay, static MX, MY {enter}

SendPlay, if {(}{!}MX && {!}MY{)} {enter}

SendPlay, MouseGetPos, MX, MY {enter}
SendPlay, Menu, MyMenu, Show, 
SendPlay, {shift down}{5}{shift up} MX,
SendPlay, {shift down}{5}{shift up} MY {enter}
SendPlay, {}} {}} {enter}
SendPlay {R}eturn  {enter}
Return






New_AHK_file:
;Run, file copy.ahk


Blankfile = D:\Z-A__Control__key__voice__gui__System\Shortcuts\z_.ahk
Send !d
ControlGetText Path , Edit1, A
Send {Enter}
Filecopy %Blankfile%, %Path%

Sleep, 500
Send, {F2}
;Return

Reload
Return

;//FUNCTION ADD ABOVE THIS LINE


Show() {
static MX, MY
if (!MX && !MY)
MouseGetPos, MX, MY
Menu, MyMenu, Show, % MX, % MY
} }



;Input, SingleKey, L1, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}{left}{right}{up}{down}{Numpad0}{Numpad1}{Numpad2}{Numpad3}{Numpad4}{Numpad5}{Numpad6}{Numpad7}{Numpad8}{Numpad9}{NumpadDot}{NumpadEnter}{NumpadMult}{NumpadDiv}{NumpadAdd}{NumpadSub}{NumpadDel}{NumpadIns}{NumpadClear}{NumpadUp}{NumpadDown}{NumpadLeft}{NumpadRight}{NumpadHome}{NumpadEnd}{NumpadPgUp}{NumpadPgDn}{Browser_Back}{Browser_Forward}{Browser_Refresh}{Browser_Stop}{Browser_Search}{Browser_Favorites}{Browser_Home}{Volume_Mute}{Volume_Down}{Volume_Up}{Media_Next}{Media_Prev}{Media_Stop}{Media_Play_Pause}{Launch_Mail}{Launch_Media}{Launch_App1}{Launch_App2}
;Reload
;Return



Return
